#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include<string>
#include<vector>
using namespace std;

int n;
int main()
{
    cin >> n;
    vector<string> ret(n);
    string str1, str2;
    cin >> str1 >> str2;
    if (str1.empty() || str2.empty())
    {
        cout << -1 << '\n';
        return -1;
    }
    pair<string, int> v1;
    pair<string, int> v2;




    return 0;
}
